home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / program / gcc / gcc270-d.lha / gnu / man / cat3 / getfsent.0 < prev    next >
Text File  |  1992-08-10  |  3KB  |  133 lines

  1.  
  2. GETFSENT(3)                UNIX Programmer's Manual                GETFSENT(3)
  3.  
  4. NNAAMMEE
  5.      ggeettffsseenntt, ggeettffssssppeecc, ggeettffssffiillee, sseettffsseenntt, eennddffsseenntt - get file system de­
  6.      scriptor file entry
  7.  
  8. SSYYNNOOPPSSIISS
  9.      ##iinncclluuddee <<ffssttaabb..hh>>
  10.  
  11.      _f_s_t_a_b _*
  12.      ggeettffsseenntt(_v_o_i_d)
  13.  
  14.      _s_t_r_u_c_t _f_s_t_a_b _*
  15.      ggeettffssssppeecc(_c_o_n_s_t _c_h_a_r _*_s_p_e_c)
  16.  
  17.      _s_t_r_u_c_t _f_s_t_a_b _*
  18.      ggeettffssffiillee(_c_o_n_s_t _c_h_a_r _*_f_i_l_e)
  19.  
  20.      _i_n_t
  21.      sseettffsseenntt(_v_o_i_d)
  22.  
  23.      _v_o_i_d
  24.      eennddffsseenntt(_v_o_i_d)
  25.  
  26. DDEESSCCRRIIPPTTIIOONN
  27.      The ggeettffsseenntt(), ggeettffssssppeecc(), and ggeettffssffiillee() functions each return a
  28.      pointer to an object with the following structure containing the broken­
  29.      out fields of a line in the file system description file, <_f_s_t_a_b_._h>.
  30.  
  31.            struct fstab {
  32.                    char    *fs_spec;       /* block special device name */
  33.                    char    *fs_file;       /* file system path prefix */
  34.                    char    *fs_vfstype;    /* type of file system */
  35.                    char    *fs_mntops;     /* comma separated mount options */
  36.                    char    *fs_type;       /* rw, ro, sw, or xx */
  37.                    int     fs_freq;        /* dump frequency, in days */
  38.                    int     fs_passno;      /* pass number on parallel dump */
  39.            };
  40.  
  41.      The fields have meanings described in fstab(5).
  42.  
  43.      The sseettffsseenntt() function opens the file (closing any previously opened
  44.      file) or rewinds it if it is already open.
  45.  
  46.      The eennddffsseenntt() function closes the file.
  47.  
  48.      The ggeettffssssppeecc() and ggeettffssffiillee() functions search the entire file (opening
  49.      it if necessary) for a matching special file name or file system file
  50.      name.
  51.  
  52.      For programs wishing to read the entire database, ggeettffsseenntt() reads the
  53.      next entry (opening the file if necessary).
  54.  
  55.      All entries in the file with a type field equivalent to FSTAB_XX are ig­
  56.      nored.
  57.  
  58. RREETTUURRNN VVAALLUUEESS
  59.      The ggeettffsseenntt(), ggeettffssssppeecc(), and ggeettffssffiillee() functions return a null
  60.      pointer (0) on EOF or error.  The sseettffsseenntt() function returns 0 on fail­
  61.      ure, 1 on success.  The eennddffsseenntt() function returns nothing.
  62.  
  63. FFIILLEESS
  64.  
  65.  
  66.      /etc/fstab
  67.  
  68. SSEEEE AALLSSOO
  69.      fstab(5)
  70.  
  71. HHIISSTTOORRYY
  72.      The ggeettffsseenntt() function appeared in 4.0BSD; the eennddffsseenntt(), ggeettffssffiillee(),
  73.      ggeettffssssppeecc(), and sseettffsseenntt() functions appeared in 4.3BSD.
  74.  
  75. BBUUGGSS
  76.      These functions use static data storage; if the data is needed for future
  77.      use, it should be copied before any subsequent calls overwrite it.
  78.  
  79. 4th Berkeley Distribution       April 19, 1991                               2
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.